<template>
  <component>
    <template v-if='pass'>
      <img class='img-size' src='weapp/passd.png'>
    </template>
    <template v-else>
      <img class='img-size' src='weapp/denied.png'>
    </template>
  </component>
</template>

<script setup lang='ts'>
import { defineProps } from 'vue';
defineProps({
  pass: {
    type: Boolean
  }
})
</script>

<style scoped lang='sass'>
.img-size
  width: 6em
</style>
